// 记录相关API
import request from '@/utils/request'

// ======================================== 操作记录相关API ========================================

// 获取操作记录列表
export const OperationRecordList = (data) => {
  return request({
    url: '/api/Record/OperationRecordList',
    method: 'post',
    data
  })
}

// 获取操作记录详情
export const OperationRecordDetail = (data) => {
  return request({
    url: '/api/Record/OperationRecordDetail',
    method: 'post',
    data
  })
}

// 提交操作记录信息
export const SubmitOperationRecord = (data) => {
  return request({
    url: '/api/Record/SubmitOperationRecord',
    method: 'post',
    data
  })
}

// 批量删除操作记录信息
export const DelOperationRecord = (data) => {
  return request({
    url: "/api/Record/DelOperationRecord",
    method: 'post',
    data
  })
}

// ======================================== 实验记录相关API ========================================

// 获取实验任务队列数据
export const ExperimentTaskQueueList = (data) => {
  return request({
    url: '/api/Record/ExperimentTaskQueueList',
    method: 'post',
    data
  })
}

// 获取实验记录列表
export const ExperimentRecordList = (data) => {
  return request({
    url: '/api/Record/ExperimentRecordList',
    method: 'post',
    data
  })
}

// 获取实验记录详情
export const ExperimentRecordDetail = (data) => {
  return request({
    url: '/api/Record/ExperimentRecordDetail',
    method: 'post',
    data
  })
}

// 提交实验记录信息
export const SubmitExperimentRecord = (data) => {
  return request({
    url: '/api/Record/SubmitExperimentRecord',
    method: 'post',
    data
  })
}

// 批量删除实验记录信息
export const DelExperimentRecord = (data) => {
  return request({
    url: "/api/Record/DelExperimentRecord",
    method: 'post',
    data
  })
}

// 更新实验记录状态
export const UpdateExperimentRecordStstus = (data) => {
  return request({
    url: "/api/Record/UpdateExperimentRecordStstus",
    method: 'post',
    data
  })
}

// 更新实验任务顺序
export const UpdateExperimentRecordSort = (data) => {
  return request({
    url: "/api/Record/UpdateExperimentRecordSort",
    method: 'post',
    data
  })
}

// ======================================== 实验运行日志相关API ========================================

// 获取实验运行日志列表
export const ExperimentRunLogList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogList',
    method: 'post',
    data
  })
}

// 获取球磨机1实验运行日志列表
export const ExperimentRunLogByBallMillingList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByBallMillingList',
    method: 'post',
    data
  })
}

// 获取球磨机2实验运行日志列表
export const ExperimentRunLogByBallMillingTwoList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByBallMillingTwoList',
    method: 'post',
    data
  })
}

// 获取管式炉实验运行日志列表
export const ExperimentRunLogByTubeFurnaceList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByTubeFurnaceList',
    method: 'post',
    data
  })
}

// 获取下装炉实验运行日志列表
export const ExperimentRunLogByBottomFurnaceList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByBottomFurnaceList',
    method: 'post',
    data
  })
}

// 获取自动化烘干机实验运行日志列表
export const ExperimentRunLogByOvenList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByOvenList',
    method: 'post',
    data
  })
}

// 获取电化学测试仪器实验运行日志列表
export const ExperimentRunLogByElectroChemistryTestList = (data) => {
  return request({
    url: '/api/Record/ExperimentRunLogByElectroChemistryTestList',
    method: 'post',
    data
  })
}

// 获取球磨机1图表数据
export const EChartDataByBallMilling = (data) => {
  return request({
    url: '/api/Record/EChartDataByBallMilling',
    method: 'post',
    data
  })
}

// 获取球磨机2图表数据
export const EChartDataByBallMillingTwo = (data) => {
  return request({
    url: '/api/Record/EChartDataByBallMillingTwo',
    method: 'post',
    data
  })
}

// 获取管式炉图表数据
export const EChartDataByTubeFurnace = (data) => {
  return request({
    url: '/api/Record/EChartDataByTubeFurnace',
    method: 'post',
    data
  })
}

// 获取下装炉图表数据
export const EChartDataByBottomFurnace = (data) => {
  return request({
    url: '/api/Record/EChartDataByBottomFurnace',
    method: 'post',
    data
  })
}

// 获取自动化烘干机图表数据
export const EChartDataByOven = (data) => {
  return request({
    url: '/api/Record/EChartDataByOven',
    method: 'post',
    data
  })
}

// ======================================== 预警记录相关API ========================================

// 获取预警记录列表
export const WarningRecordList = (data) => {
  return request({
    url: '/api/Record/WarningRecordList',
    method: 'post',
    data
  })
}

// 获取预警记录详情
export const WarningRecordDetail = (data) => {
  return request({
    url: '/api/Record/WarningRecordDetail',
    method: 'post',
    data
  })
}

// 提交预警记录信息
export const SubmitWarningRecord = (data) => {
  return request({
    url: '/api/Record/SubmitWarningRecord',
    method: 'post',
    data
  })
}

// 批量删除预警记录信息
export const DelWarningRecord = (data) => {
  return request({
    url: "/api/Record/DelWarningRecord",
    method: 'post',
    data
  })
}
